const useSystemHomeRouterText = (curRes: Record<string, any>) => {
  let curResText: string = '/welcome';
  if (curRes && JSON.stringify(curRes) != '{}') {
    if (curRes?.['/contractController/homePage']) {
      curResText = '/contractController/homePage';
    } else if (curRes?.['/purchaseGateway/manage']) {
      curResText = '/purchaseGateway/manage';
    } else if (curRes?.['/fixedassetportal/manage']) {
      curResText = '/fixedassetportal/manage';
    }
  } else {
    curResText = '';
  }
  return curResText;
};

export { useSystemHomeRouterText };
